#-------------------------------------------------
#
# Project created by Bundle Creator
#
#-------------------------------------------------

QT       += xml charts
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

TARGET = FY4TaskOptimization
TEMPLATE = lib

include($$PWD/../include/common.pri)

DEFINES += FY4TASKOPTIMIZATION_LIBRARY

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

INCLUDEPATH += $${DEV_HOME}/include
INCLUDEPATH += $${DEV_HOME}/include/HMPCore
INCLUDEPATH += $${DEV_HOME}/include/HMPBundleFrame
INCLUDEPATH += $${DEV_HOME}/include/service
INCLUDEPATH += $${DEV_HOME}/include/HPlot


CONFIG += debug_and_relase build_all c++11
CONFIG(debug,debug|release){
DESTDIR = $${DEST_DIR_D}/plugins
LIBS += -L$${DEST_DIR_D}
LIBS += -lHMPCore
LIBS += -lHMPBundleFrame
LIBS += -lHPlot

}


CONFIG(release,debug|release){
DESTDIR = $${DEST_DIR_R}/plugins
LIBS += -L$${DEST_DIR_R}
LIBS += -lHMPCore
LIBS += -lHMPBundleFrame
LIBS += -lHPlot
}

TRANSLATIONS = FY4TaskOptimization.ts

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        fy4taskoptimization.cpp \
#other sources
    missioneditview.cpp \
    scriptitemtree.cpp \
    taskitemtree.cpp \
    taskmanager.cpp \
    taskitem.cpp \
    commanditem.cpp \
    scriptitem.cpp \
    styleitem.cpp \
    instrumentbase.cpp \
    f4cagrinstrument.cpp \
    commontreedelegate.cpp \
    taskoptimizationframe.cpp \
    taskeditdialog.cpp \
    fulldiskform.cpp \
    regionscanform.cpp \
    midregiongroupform.cpp \
    fastpointtaskform.cpp \
    taskstyleeditor.cpp \
    efficencydialog.cpp \
    f4bagrinstrument.cpp \
    f4testimatrument.cpp


HEADERS += \
        fy4taskoptimization.h \
#other headers
    missioneditview.h \
    scriptitemtree.h \
    taskitemtree.h \
    taskmanager.h \
    taskitem.h \
    commanditem.h \
    scriptitem.h \
    styleitem.h \
    instrumentbase.h \
    f4cagrinstrument.h \
    commontreedelegate.h \
    taskoptimizationframe.h \
    taskeditdialog.h \
    fulldiskform.h \
    regionscanform.h \
    midregiongroupform.h \
    notify.h \
    taskeditor.h \
    fastpointtaskform.h \
    taskstyleeditor.h \
    efficencydialog.h \
    f4bagrinstrument.h \
    f4testimatrument.h

unix { \

    target.path = /usr/lib
    INSTALLS += target
}

RESOURCES += \
    fy4taskoptimization.qrc

FORMS += \
    taskoptimizationframe.ui \
    taskeditdialog.ui \
    fulldiskform.ui \
    regionscanform.ui \
    midregiongroupform.ui \
    fastpointtaskform.ui \
    taskstyleeditor.ui \
    efficencydialog.ui


